home *** CD-ROM | disk | FTP | other *** search
/ Teach Yourself Web Publi…sional Reference Edition) / Teach Yourself Web Publishing HTML 3.2.iso / pc / source / chap19 / cgi-bin / sleep.txt < prev    next >
Encoding:
Text File  |  1996-05-28  |  473 b   |  26 lines

  1. #!/bin/sh
  2.  
  3. eval `/home/www/cgi-bin/cgiparse -init`
  4. eval `/home/www/cgi-bin/cgiparse -form`
  5.  
  6. echo Content-type: text/html
  7. echo
  8. echo "<HTML><HEAD>"
  9. echo "<TITLE>Sleepometer Results</TITLE>"
  10. echo "</HEAD><BODY>"
  11. echo "<H3>Results:</H3>"
  12.  
  13. if [ ! -z "$FORM_theName" ]; then
  14.     echo "<P>$FORM_theName is"
  15. else
  16.     echo "<P>A Person with no name is"
  17. fi
  18.  
  19. if [ "$FORM_sleepy" = "yes" ]; then
  20.     echo " sleepy."
  21. else    
  22.     echo " not sleepy."
  23. fi
  24.  
  25. echo "</BODY></HTML>"
  26.